﻿using MediatR;
using SmartProduction.ErrorCode;
using System.ComponentModel.DataAnnotations;

namespace SmartProduction.Write.API.Application.Commands.ClientInfoCommand
{
    /// <summary>
    /// 客户信息新增命令
    /// </summary>
    public class ClientInfoCreateCommand : IRequest<APIResult<object>>
    {
        /// <summary>
        /// 客户编号
        /// </summary>
        [StringLength(50)]
        public string? ClientInfoNo { get; set; }
        /// <summary>
        /// 客户编码
        /// </summary>
        [StringLength(50)]
        public string? ClientInfoNumer { get; set; }
        /// <summary>
        /// 客户名称
        /// </summary>
        [StringLength(50)]
        public string? ClientInfoName { get; set; }
        /// <summary>
        /// 客户区分
        /// </summary>
        [StringLength(50)]
        public string? ClientInfoType { get; set; }
        /// <summary>
        /// 客户电话
        /// </summary>
        [StringLength(11)]
        public string? ClientInfoPhone { get; set; }
        /// <summary>
        /// 客户邮箱
        /// </summary>
        [StringLength(50)]
        public string? ClientInfoEmail { get; set; }
        /// <summary>
        /// 客户行业
        /// </summary>
        public int IndustryId { get; set; }
        /// <summary>
        /// 客户地址
        /// </summary>
        [StringLength(50)]
        public string? ClientInfoAddr { get; set; }
        /// <summary>
        /// 所在国家
        /// </summary>
        [StringLength(50)]
        public string? CountryName { get; set; }
        /// <summary>
        /// 所在城市
        /// </summary>
        public int CountryCity { get; set; }
        /// <summary>
        /// 客户分类
        /// </summary>
        [StringLength(50)]
        public string? ClientInfoClass { get; set; }
        /// <summary>
        /// 客户标签
        /// </summary>
        [StringLength(50)]
        public string? ClientInfoLabel { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public bool ClientInfoStatu { get; set; }
        /// <summary>
        /// 本公司标识
        /// </summary>
        public bool FirmLabel { get; set; }
        /// <summary>
        /// 删除标记
        /// </summary>
        public bool IsDelete { get; set; }
    }
}
